<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>39 | 项目信息修改</title>
<meta name="viewport" content="width=device-width, initial-scale=2">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords"
	content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript">
	
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 

</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/lines.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<!-- Graph JavaScript -->
<script src="js/d3.v3.js"></script>
<script src="js/rickshaw.js"></script>
</head>
<body>
	<div id="wrapper">
		<!-- Navigation -->
		<!-- left.jsp -->
		<jsp:include page="left.jsp"></jsp:include>
		<div id="page-wrapper">
			<div class="xs">
				<div class="well1 white">
					项目组织
					<hr/>
					<form name="" action="projectInfoUpdateCommit" method="post">
					<%-- <input type="hidden" value="${project.id }" name="new_project.id"/> --%>
					<input type="hidden" value="${project.id }" name="project.id"/>
					<table class="table">
						<tr>
							<td><b>项目所领导</b></td>
							<td>
							<!-- <select name="new_project.leader_39.id"> -->
							<select name="project.leader_39.id">
								<c:forEach var="u" items="${userList }">
									<c:if test="${u.role.id == 1 }">
										<c:choose>
											<c:when test="${u.id == project.leader_39.id}">
												<option value="${u.id }" selected="selected">${u.user_name}</option>
											</c:when>
											<c:otherwise>
												<option value="${u.id }">${u.user_name}</option>
											</c:otherwise>
										</c:choose>
									</c:if>
								</c:forEach>
							</select>
							</td>
							<td><b>计划部分管领导</b></td>
							<td>
							<!-- <select name="new_project.project_manager.id"> -->
							<select name="project.project_manager.id">
								<c:forEach var="u" items="${userList }">
									<c:if test="${u.role.id==3 }">
										<c:choose>
											<c:when test="${u.id == project.project_manager.id}">
												<option value="${u.id }" selected="selected">${u.user_name}</option>
											</c:when>
											<c:otherwise>
												<option value="${u.id }">${u.user_name}</option>
											</c:otherwise>
										</c:choose>
									</c:if>
								</c:forEach>
							</select>
							</td>
							<td><b>计划部项目主管</b></td>
							<td>
							<select name="project.cpd_ps.id">
								<c:forEach var="u" items="${userList }">
									<c:if test="${u.role.id==2 }">
										<c:choose>
											<c:when test="${u.id == project.cpd_ps.id}">
												<option value="${u.id }" selected="selected">${u.user_name}</option>
											</c:when>
											<c:otherwise>
												<option value="${u.id }">${u.user_name}</option>
											</c:otherwise>
										</c:choose>
									</c:if>
								</c:forEach>
							</select>
							
							</td>
							<td><b>事业部计划主管</b></td>
							<td>
								<input name="project.head_ps" value="${project.head_ps }"/>
							</td>
						</tr>
						<tr>
							<td><b>牵头单位</b></td>
							<td>
								<!-- <select name="new_project.head_dept.id"> -->
								<select name="project.head_dept.id">
									<c:forEach items="${deptList }" var="dept" begin="0" end="8">
										<c:choose>
											<c:when test="${dept.id == project.head_dept.id}">
												<option value="${dept.id }" selected="selected">${dept.dept_name }</option>
											</c:when>
											<c:otherwise>
												<option value="${dept.id }">${dept.dept_name }</option>
											</c:otherwise>
										</c:choose>
									</c:forEach>
								</select>
							</td>
							<td><b>参研单位</b></td>
							<td>
								当前参研单位：<span style="color:red;">
								<c:forEach items="${project.participate_dept }" var="pd">
									${pd.dept_name }
								</c:forEach>
								</span><br>
								<c:forEach items="${deptList }" var="d"  begin="0" end="8">
											<input name="participate_dept" type="checkbox" value="${d.id }" id="${d.id }"/>
											<label for="${d.id }">${d.dept_name }</label>
								</c:forEach>
							</td>
							<td><b>项目启动时间</b></td>
							<td>
								<%-- <input value="${project.time_details }" name="new_project.time_details"> --%>
								<input value="${project.time_details }" name="project.time_details">					
							</td>
							<td><b>项目类型</b></td>
							<td>
								<select name="project.project_type.id">
									<c:forEach items="${projectTypeList }" var="type">
										<option value="${type.id }">${type.protype_name }</option>
									</c:forEach>	
								</select>	
							</td>
						</tr>
						<tr>	
							<td><b>项目生命周期</b></td>
							<td>
								<c:forEach var="lc" items="${project.lifeCycles }">
									${lc.name_lifecycle },
								</c:forEach></td>
							<td><b>分级生命周期模型</b></td>
							<td>
							<c:forEach var="fj" items="${project.subcycles }">
									${fj.name_subcycle }:
								</c:forEach></td>
							<td><b>项目领域</b></td>
							<td>
							<select name="project.project_filed.id">
								<c:forEach items="${projectFieldList }" var="field">
									<option value="${field.id }">${field.projectfield_name }</option>	
								</c:forEach>	
							</select>
							</td>
						</tr>
					</table>	
					<center>
						<button class="btn btn-primary">提交</button>
						<button class="btn btn-primary" onclick="history.go(-1);" >返回</button>
					</center>
					</form>
				</div>
			</div>




			<!-- copyright -->



			<jsp:include page="copyright.jsp"></jsp:include>

		</div>
	</div>
	<!-- /#page-wrapper -->
	</div>
	<!-- /#wrapper -->
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.min.js"></script>
</body>
</html>
